#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QThread>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QThread thread;

    void checkProcess();
    void logShow(QtMsgType type, const QMessageLogContext &context, const QString &msg);

private slots:
    void on_pushButtonStartNginx_clicked();

    void on_pushButtonStopNginx_clicked();

    void on_pushButtonStartMysql_clicked();

    void on_pushButtonStopMysql_clicked();

    void on_pushButtonStartMqtt_clicked();

    void on_pushButtonStopMqtt_clicked();

    void on_pushButtonStartRedis_clicked();

    void on_pushButtonStopRedis_clicked();

    void on_pushButtonStartMain_clicked();

    void on_pushButtonStopMain_clicked();

    void on_pushButtonStartAll_clicked();

    void on_pushButtonStopAll_clicked();

    void on_pushButtonConfig_clicked();

    void on_pushButtonDebug_clicked();

    void on_pushButtonStartRoom_clicked();

    void on_pushButtonStopRoom_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
